<template>
    <div>
        <nav-bar :head="head"></nav-bar>
        <van-submit-bar
                :price="3050"
                button-text="提交订单"
                @submit="onSubmit"
        >
            <van-checkbox v-model="checked">全选</van-checkbox>
            <span slot="tip">
    你的收货地址不支持同城送, <span>修改地址</span>
  </span>
        </van-submit-bar>
    </div>
</template>

<script>
import Vue from 'vue'
import { SubmitBar } from 'vant'
import { Checkbox, CheckboxGroup } from 'vant'
import { Toast } from 'vant'

Vue.use(Toast);
Vue.use(SubmitBar);
Vue.use(Checkbox).use(CheckboxGroup);
export default {
    name: "order-submit",
    data() {
      return {
          head:'购物车'
      }
    },
    methods: {
        onSubmit:function () {
            Toast('提交订单')
        },
        checked:function () {
            this.checked();
        }
    }
}
</script>

<style scoped>
    .van-submit-bar__bar{
        padding-left: 10px;
    }
</style>
